package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 当某个供应商无欠款时，wait_pay字段一定要是“0”
 * </p>
 *
 * @author chenj
 * @since 2020-03-05
 */
public class PayWait extends Model<PayWait> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 供应商id
     */
    private String providerId;

    /**
     * 总共应付欠款
     */
    private BigDecimal total;

    /**
     * 已支付欠款
     */
    private BigDecimal hasPay;

    /**
     * 优惠欠款
     */
    private BigDecimal discount;

    /**
     * 剩余应付欠款
     */
    private BigDecimal waitPay;

    /**
     * 所属公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getProviderId() {
        return providerId;
    }

    public void setProviderId(String providerId) {
        this.providerId = providerId;
    }
    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }
    public BigDecimal getHasPay() {
        return hasPay;
    }

    public void setHasPay(BigDecimal hasPay) {
        this.hasPay = hasPay;
    }
    public BigDecimal getDiscount() {
        return discount;
    }

    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
    public BigDecimal getWaitPay() {
        return waitPay;
    }

    public void setWaitPay(BigDecimal waitPay) {
        this.waitPay = waitPay;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PayWait{" +
            "id=" + id +
            ", providerId=" + providerId +
            ", total=" + total +
            ", hasPay=" + hasPay +
            ", discount=" + discount +
            ", waitPay=" + waitPay +
            ", companyId=" + companyId +
        "}";
    }
}
